<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  components: {
    name: "App",
  },
  created() {
    let uInfo = localStorage.getItem("userInfo");
    if (uInfo) {
      let info = JSON.parse(uInfo);
      this.$store.commit("user/initMut", info);
    }
  },
};
</script>

<style lang="less">
#App {
  height: 100%;
}
</style>
